import request from '@/plugin/axios'

// 获取当前用户
export const linkManageList = data => {
  // return request(`/api/v1/linkManage?pageNum=${pageNum}&pageSize=${PAGE_SIZE}&${whereStr}`)
  return request({
    url: '/v1/linkManage',
    method: 'get',
    params: data
  })
}

// 创建用户
export const createLinkManage = data => {
  console.log(11111)
  return request({
    url: '/v1/linkManage',
    method: 'post',
    data
  })
}

// 修改用户
export const updateLinkManage = data => {
  return request({
    url: `/v1/linkManage/${data.id}`,
    method: 'put',
    data
  })
}

// 删除用户
export const delLinkManage = data => {
  return request({
    url: `/v1/linkManage/${data.id}`,
    method: 'delete',
    data
  })
}

// 批量删除用户
export const delAll = data => {
  return request({
    url: `/v1/linkManage/${data.id[0]}`,
    method: 'delete',
    data
  })
}
